﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.Common;
using Mocola.BLL;
using Mocola.Model;
using System.Collections.Generic;
using Mocola.Security;

namespace Mocola.Net.Web.ajax
{
    public partial class DelArticles : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string ID = Request.QueryString["ArticleID"].ToString();
            DbTransaction transaction = Databases.MocolaNet.BeginTransaction(IsolationLevel.ReadCommitted);
            string sql = "DELETE FROM Moc_Articles WHERE ArticleID = " + ID;
            Databases.MocolaNet.ExecuteNonQuery(CommandType.Text, sql);
        }
    }
}
